fix a few gcc10 warnings.
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Sun, 2 Aug 2020 16:06:30 +0000 (10:06 -0600)
committertsteven4 <13596209+tsteven4@users.noreply.github.com>
Sun, 2 Aug 2020 16:06:30 +0000 (10:06 -0600)
jeeps/gpsapp.cc

index 3802df7c81ad6eec463cdf39682790523ec7faa3..3e66604f5abf5fc7d88191f28a1fc7bed1644abd 100644 (file)
@@ -2375,7 +2375,7 @@ static void GPS_D108_Send(UC* data, GPS_PWay way, int32* len)
   p+=sizeof(int32);
 
   if (way->alt_is_unknown) {
-    GPS_Util_Put_Float(p,(const float) 1.0e25);
+    GPS_Util_Put_Float(p, 1.0e25f);
   } else {
     GPS_Util_Put_Float(p,way->alt);
   }
@@ -2460,7 +2460,7 @@ static void GPS_D109_Send(UC* data, GPS_PWay way, int32* len, int protoid)
   GPS_Util_Put_Int(p,GPS_Math_Deg_To_Semi(way->lon));
   p+=sizeof(int32);
   if (way->alt_is_unknown) {
-    GPS_Util_Put_Float(p,(const float) 1.0e25);
+    GPS_Util_Put_Float(p, 1.0e25f);
   } else {
     GPS_Util_Put_Float(p,way->alt);
   }